<!DOCTYPE HTML>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="maximum-scale=1.0, minimum-scale=1.0, user-scalable=0, initial-scale=1.0, width=device-width"/>
<meta name="format-detection" content="telephone=no, email=no, date=no, address=no">
<title>收入明细</title>
<link rel="stylesheet" type="text/css" href="../../css/aui-flex.css" />
<link rel="stylesheet" type="text/css" href="../../css/aui.css" />
<link rel="stylesheet" type="text/css" href="../../css/common.css" />
<style>
.aui-content{
	padding: 0 1rem;
}
.list{
	height: 4.1rem;
	line-height: 1.7;
}
.icon img{
	height: 2rem;
	margin-right: 0.2rem;
}
.notData{
    left: 0rem;
		top: 20%;
    padding-left: 0.5rem;
    padding-right: 0.5rem;
}
</style>
</head>
<body>
	<div class="aui-content">
		<!-- 无奖励明细显示 -->
		<div class="notData aui-hide bg-white">
			<img src="../../image/notdata/12.png" class="notImg" alt="">
			<div class="aui-font-size-14 color-ad">暂无收支明细</div>
		</div>
		<div id="list_html"></div>
		<script type="text/x-dot-template" id="list_tpl">
			<div class="list aui-flex-col aui-flex-between aui-flex-middle aui-border-b">
				{{ for(var i in it) { }}
				{{if(it[i].wallet_type == 1){}}
					<div class="icon"><img src="../../image/mine/m_icon7.png" alt=""></div>
					<div class="flex-auto">
						<div class="aui-font-size-14 text-bold color-37">提现</div>
						<div class="aui-font-size-12 color-ad">{{=it[i].wallet_addtime || ''}}</div>
					</div>
				{{ }else if(it[i].wallet_type == 2){}}
					<div class="icon"><img src="../../image/mine/m_icon8.png" alt=""></div>
					<div class="flex-auto">
						<div class="aui-font-size-14 text-bold color-37">淘宝客佣金收入</div>
						<div class="aui-font-size-12 color-ad">{{=it[i].wallet_addtime || ''}}</div>
					</div>
					{{ }else if(it[i].wallet_type == 3){}}
						<div class="icon"><img src="../../image/mine/m_icon9.png" alt=""></div>
						<div class="flex-auto">
							<div class="aui-font-size-14 text-bold color-37">VIP大礼包佣金收入</div>
							<div class="aui-font-size-12 color-ad">{{=it[i].wallet_addtime || ''}}</div>
						</div>
					{{ }else if(it[i].wallet_type == 4){}}
					<div class="icon"><img src="../../image/mine/m_icon9.png" alt=""></div>
					<div class="flex-auto">
						<div class="aui-font-size-14 text-bold color-37">自营商品佣金收入</div>
						<div class="aui-font-size-12 color-ad">{{=it[i].wallet_addtime || ''}}</div>
					</div>
				{{ }else if(it[i].wallet_type == 5){}}
					<div class="icon"><img src="../../image/mine/m_icon8.png" alt=""></div>
					<div class="flex-auto">
						<div class="aui-font-size-14 text-bold color-37">淘宝收取的技术服务费</div>
						<div class="aui-font-size-12 color-ad">{{=it[i].wallet_addtime || ''}}</div>
					</div>
				{{}}}
				<div>
				{{if(it[i].wallet_type == 1){}}
					<div class="aui-font-size-14 text-bold color-35">-{{=it[i].wallet_amount || '0.00'}}</div>
				{{} else if(it[i].wallet_type == 5){}}
					<div class="aui-font-size-14 text-bold color-35">-{{=it[i].wallet_amount || '0.00'}}</div>
				{{} else {}}
					<div class="aui-font-size-14 text-bold color-35">+{{=it[i].wallet_amount || '0.00'}}</div>
				{{}}}
					<div class="aui-font-size-12 color-ad">余额：{{=it[i].wallet_ballance || '0.00'}}</div>
				</div>
			</div>
			{{}}}
		</script>

		<!-- <div class="list aui-flex-col aui-flex-between aui-flex-middle aui-border-b">
			<div class="icon"><img src="../../image/mine/m_icon8.png" alt=""></div>
			<div class="flex-auto">
				<div class="aui-font-size-14 text-bold color-35">淘宝收取的技术服务费</div>
				<div class="aui-font-size-12 color-ad">2018-08-22 18:42:21</div>
			</div>
			<div>
				<div class="aui-font-size-14 text-bold color-35">-72.85</div>
				<div class="aui-font-size-12 color-ad">余额：0.00</div>
			</div>
		</div>
		<div class="list aui-flex-col aui-flex-between aui-flex-middle aui-border-b">
			<div class="icon"><img src="../../image/mine/m_icon9.png" alt=""></div>
			<div class="flex-auto">
				<div class="aui-font-size-14 text-bold color-37">佣金收入</div>
				<div class="aui-font-size-12 color-ad">2018-08-22 18:42:21</div>
			</div>
			<div>
				<div class="aui-font-size-14 text-bold color-37">-72.85</div>
				<div class="aui-font-size-12 color-ad">余额：0.00</div>
			</div>
		</div> -->
	</div>
</body>
<script type="text/javascript" src="../../script/import.js"></script>
<script type="text/javascript" src="../../script/common.js"></script>
<script type="text/javascript">
apiready = function(){
	api.parseTapmode();
	getWalletList();
};
function getWalletList(){
	api.ajax({
	    url: BASE_URL + 'App/UserAccount/walletList',
	    method: 'post',
	    data: {
	        values: {
	            userid: getUserId()
	        }
	    }
	},function(ret, err){
	    if (ret) {
				if(ret.code == 1 && ret.data){
					console.log(JSON.stringify(ret));
					$$('.notData').addClass('aui-hide')
					var tpl = $$('#list_tpl').html();
					var tempFn = doT.template(tpl);
					$$('#list_html').html(tempFn( ret.data ));
					api.parseTapmode();
				}else{
					$$('.notData').removeClass('aui-hide')

				}
	    } else {
	        toast(ret.msg)
	    }
	});

}
</script>
</html>
